﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using SelfService.Model.Interface;
using WalkingTec.Mvvm.Core;

namespace SelfService.Model.Models
{
    public class SysPatient : TopBasePoco, IPatient
    {
        [Display(Name = "HisId")]
        [StringLength(64)]
        public string HisCode { get; set; }

        [Display(Name = "就诊卡号")]
        [StringLength(128)]
        public string  CardNo { get; set; }

        [Display(Name = "姓名")]
        [StringLength(32)]
        public string Name { get; set; }

        [Display(Name = "年龄")]
        public int Age { get; set; }

        [Display(Name = "性别")]
        public SexEnum Sex { get; set; }

        [Display(Name = "就诊卡余额")]
        [Column(TypeName = "decimal(10,2)")]
        public decimal Balance { get; set; }

        [Display(Name = "身份证号码")]
        [StringLength(32)]
        public string IdCardNo { get; set; }

        [Display(Name = "社保卡号")]
        [StringLength(32)]
        public string IcCardNo { get; set; }

        [Display(Name = "身份证UID")]
        [StringLength(32)]
        public string Uid { get; set; }

        [Display(Name = "地址")]
        [StringLength(32)]
        public string Address { get; set; }

        [Display(Name = "手机号码")]
        [StringLength(32)]
        public string Phone { get; set; }

        [Display(Name = "上次业务时间")]
        public DateTime? LastTime { get; set; }

        [Display(Name = "建档时间")]
        public DateTime CreateTime { get; set; }
    }
}
